package com.geek.javase.ExtendsWork;

/**
 * @author chenshupeng
 * @date 2025/9/2
 * @desc TODO
 **/

public class PersonMain {
    public static void main(String[] args) {
        Person P1=new Person("小王",23,true);
        Person P2=new Person("小李",25,false);
        System.out.println(P1);
        System.out.println(P2);
        P1.partner=null;
        P2.partner=null;

        P1.marry(P2);
    }
}
